
$(document).ready(function(){
	$.ajaxSetup({
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			alert ("An AJAX error has occurred.");
		}
	});	
});

function xprtGetJSON(url, data, success) {
	$.ajax({
		type: "POST",
		url: contextPath + url + servletMapping,
		data: data,
		dataType: "json",
		success: success
	});
}